package com.ruoyi.common.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;
import java.util.Date;

@Data // 自动生成 getter、setter、toString、equals、hashCode
@NoArgsConstructor // 无参构造函数
@AllArgsConstructor // 全参构造函数
@Builder // 构建者模式
public class BaiduUrlResource {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long resourceId;
    private String title;
    private String content;
    private String coverImage;
    private String showCoverImage;
    private Integer categoryId;
    private String categoryName;
    private Integer platformId;
    private String resourceType;
    private Integer price;
    private String panUrl;
    private String panCode;
    private String showPanInfo;
    private String description;
    private String keywords;
    private String tags;
    private String createBy;
    private Date createTime; // 注意：前端时间戳是毫秒级
    private String updateBy;
    private Date updateTime;
    private String delFlag;
    private String status;
    private String isTop;
    private String remark;
    private String searchValue;
    private String showPutTime;
    private Date putTime; // 同样为时间戳
    private Object params; // 可以是 Map 或 JSONObject，视具体结构而定
}